<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh">
<head>
<meta charset="utf-8" />
<title>SaltStack Admin - 项目管理 - 添加项目</title>
<meta name="description" content="Luxiaok" />
<meta name="keywords" content="Luxiaok" />
<!-- We need to emulate IE7 only when we are to use excanvas -->
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<![endif]-->
<!-- Favicons --> 
<link rel="shortcut icon" type="image/png" href="/static/images/favicons/favicon.png"/>
<link rel="icon" type="image/png" href="/static/images/favicons/favicon.png"/>
<link rel="apple-touch-icon" href="/static/images/favicons/apple.png" />
<!-- Main Stylesheet --> 
<link rel="stylesheet" href="/static/css/main.css" type="text/css" />
<!-- Your Custom Stylesheet --> 
<link rel="stylesheet" href="/static/css/custom.css" type="text/css" />
<!-- 用户列表css样式 --> 
<link rel="stylesheet" href="/static/css/tables.css" type="text/css" />
<!-- jQuery with plugins -->
<script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
<!--
Could be loaded remotely from Google CDN : 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-->
<!-- Superfish Navigation -->
<script type="text/javascript" src="/static/js/jquery.superfish.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.supersubs.min.js"></script>
<!-- 删除项目函数确认 -->
<script type="text/javascript" src="/static/js/project.add.js"></script>
<!-- 顶部导航和底部隐藏的导航的特效输出 -->
<script type="text/javascript" src="/static/js/nav.show.menu.js"></script>
</head>
<body>
	<!-- Header -->
	<%include file="header.html" args="curM='project',ShowName=ShowName,uid=uid" />
	<!-- End of Header -->
	<!-- Page title -->
	<div id="pagetitle">
		<div class="wrapper">
			<h1>新增项目</h1>
			<!-- Quick search box -->
			<form action="" method="get"><input class="" type="text" id="q" name="q" /></form>
		</div>
	</div>
	<!-- End of Page title -->
	
	<!-- Page content -->
	<div id="page">
		<!-- Wrapper -->
		<div class="wrapper">
	      <div>
<form name="projectForm" id="projectForm" action="/project/add">
<table class="maintable">
  <tr>
    <td class="textLeft">项目名称</td>
    <td class="inputRight"><input type="text" name="name" id="name" class="maininput"/></td>
    <td class="textLeft">标识 / 别名</td>
    <td class="inputRight"><input type="text" name="cname" class="maininput" /></td>
  </tr>
  <tr>
    <td class="textLeft">域名</td>
    <td class="inputRight"><input type="text" name="domain" id="domain" class="maininput"/></td>
    <td class="textLeft">端口</td>
    <td class="inputRight"><input type="text" name="port" class="maininput" value="80"/></td>
  </tr>
  <tr>
    <td class="textLeft">开发语言/框架</td>
    <td class="inputRight"><select name="lang" id="lang" class="selectmenu">
	  <option value="0" selected="selected">-- 选择开发框架 --</option>
      <option value="PHP"">PHP</option>
      <option value="Jsp">Jsp</option>
      <option value="Java">Java</option>
      <option value="Python">Python</option>
      <option value="HTML">HTML</option>
      <option value="C++">C++</option>
      <option value="Other">Other</option>
    </select></td>
    <td class="textLeft">是否公共服务</td>
    <td class="inputRight"><select name="isPublic" id="isPublic" class="selectmenu">
	  <option value="0" selected="selected">-- 选择服务类型 --</option>
      <option value="yes">是</option>
      <option value="no">否</option>
    </select></td>
  </tr>
  <tr>
    <td class="textLeft">关联项目</td>
    <td class="inputRight"><input type="text" name="relation" class="maininput" value="无"/></td>
    <td class="textLeft">主目录</td>
    <td class="inputRight"><input type="text" name="directory" class="maininput" value="/data/www/"/></td>
  </tr>
  <tr>
    <td class="textLeft">接口人</td>
    <td class="inputRight"><input type="text" name="man" class="maininput" /></td>
    <td class="textLeft">开发者</td>
    <td class="inputRight"><input type="text" name="developer" class="maininput" /></td>
  </tr>
  <tr>
    <td class="textLeft">类型</td>
    <td class="inputRight"><select name="type" id="type" class="selectmenu">
	  <option value="0" selected="selected">-- 选择业务类型 --</option>
      % for t in pt:
      <option value="${t.id}">${t.value}</option>
      % endfor
    </select></td>
    <td class="textLeft">状态</td>
    <td class="inputRight"><select name="status" id="status" class="selectmenu">
	  <option value="0" selected="selected">-- 选择状态 --</option>
      <option value="dev">开发中</option>
      <option value="test">测试中</option>
      <option value="online">上线</option>
      <option value="offline">下线</option>
    </select></td>
  </tr>
  <tr>
    <td class="textLeft">备注信息</td>
    <td class="inputRight"><input type="text" name="comment" class="maininput" /></td>
    <td class="textLeft">上线日期</td>
    <%!
    import time
    NowDate = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(time.time()))
    %>
    <td class="inputRight"><input type="text" name="cdate" class="maininput" value="${NowDate}" /></td>
  </tr>
</table>
	<div class="submitArea">
		<div class="reset"><a href="javascript:void(0)" onClick="resetForm()" class="btn"><span class="icon icon-reset">&nbsp;</span>重 置</a></div>
		<div class="submit"><a href="javascript:void(0)" onClick="submitForm('projectForm')" class="btn"><span class="icon icon-ok">&nbsp;</span>保 存</a></div>
	</div>
</form>
	      </div>
		</div>
		<!-- End of Wrapper -->
	</div>
	<!-- End of Page content -->
<%include file="footer.html" />	
</body>
</html>
